package com.ncs.controller;

import com.ncs.pojo.Menu;
import com.ncs.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MenuController {

    @Autowired
    MenuService menuService;

    @GetMapping("/menu/showAll")
    public List<Menu> showAll(){
        List<Menu> list = menuService.showAll();
        return list;

    }

}
